#ifndef __ONEWIRE_H
#define __ONEWIRE_H

#include <STC15F2K60S2.H>

void OneWire_Init(void);//单总线初始化时序

void OneWire_SendBit(unsigned char Bit);//发送一位数据
unsigned char OneWire_ReceiveBit(void);//接收一位数据

void OneWire_SendByte(unsigned char Byte);//发送一字节数据
unsigned char OneWire_ReceiveByte(void);//接收一字节数据

#endif